const getFlag = (obj) => {
  const flags = {
    help: false,
    version: false,
    archive: false,
    restore: false,
    task: false,
    note: false,
    delete: false,
    check: false,
    begin: false,
    star: false,
    copy: false,
    timeline: false,
    priority: false,
    find: false,
    list: false,
    edit: false,
    move: false,
    clear: false
  }
  if (!obj) {
    return flags;
  }
  for (const key in flags) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) {
      flags[key] = obj[key];
    }
  }
  return flags;
}

module.exports = getFlag;